package net.opentsdb.query.filter.value;

import javafx.beans.binding.NumberBinding;

public class Between extends NumericExpression {

    private Number left;
    private Number right;
    public Between(Number left, Number right){
        this.left = left;
        this.right= right;
    }
    @Override
    public boolean evaluate(Number theValue) {
        return theValue.doubleValue() >= left.doubleValue() &&
                theValue.doubleValue() <= right.doubleValue();
    }
}
